//
//  main.cpp
//  L03Class
//
//  Created by nixinsheng on 2017/10/26.
//  Copyright © 2017年 nixinsheng. All rights reserved.
//

#include <iostream>
#include "Animal.h"
#include "Cat.h"

int main(int argc, const char * argv[]) {
    // insert code here...
    std::cout << "Hello, World!\n";
    
    Animal *animal = new Animal();//使用了父类默认的构造方法
    animal->Feed();
    delete animal;
    
    Cat *cat = new Cat(27,1);//指定调用哪个构造方法了
    cat->Feed();
    delete cat;
    
    return 0;
}
